import request from '@/utils/request'


export default{
    // 文章列表
    articleLists(page, size, data) {
        return request({
            url: `manage/company/article/lists?page=${page}&size=${size}`,
            method: 'post',
            data:data
        })
    },
    //文件修改状态
    articleChange(data) {
        return request({
            url:'manage/company/article/change',
            method:'post',
            data:data
        })
    },
    //文章详情
    indexArticleDetail(id) {
        return request({
            url:'manage/company/article/detail?id='+id,
            method:'get'
        })
    },
    //文章修改或添加
    companyArticleEdit(data) {
        return request({
            url:'manage/company/article/edit',
            method:'post',
            data:data
        })
    }
}
